#!/usr/bin/env node

// 设置生产环境服务器配置
process.env.VUE_APP_SERVER_ENV = 'prod'

// 执行 vue-cli-service serve
const { spawn } = require('child_process')
const command = process.platform === 'win32' ? 'vue-cli-service.cmd' : 'vue-cli-service'

const child = spawn(command, ['serve'], {
  stdio: 'inherit',
  shell: true
})

child.on('close', (code) => {
  process.exit(code)
})

